package com.jeecg.control;

import com.jeecg.annotation.Controller;
import com.jeecg.annotation.RequestMapping;
import com.jeecg.annotation.RequestParam;
@Controller
@RequestMapping("/login")
public class LoginAction{
	@RequestMapping("/index")
	public String execute(@RequestParam("username")String username,@RequestParam("password") String pwd) {
		String result="fail.jsp";
		System.out.println("username:"+username+"  password："+pwd);	
		if("xyz".equals(username)){
			result="success.jsp";
		}
		
		return "/view/user/"+result;
	}
}
